//
//  CustomAlertView.m
//  yygrouponsale
//
//  Created by 微我网络 on 15/6/18.
//  Copyright (c) 2015年 waste. All rights reserved.
//

#import "CustomAlertView.h"
#import <MapKit/MapKit.h>
@implementation CustomAlertView

+ (void)alterMsg:(NSString * )msgStr delegate:(id)delegate
{
    UIAlertView * alter  = [[UIAlertView alloc]initWithTitle:@"提示" message:msgStr delegate:delegate cancelButtonTitle:@"确定" otherButtonTitles:@"取消", nil];
    
    [alter show];
    return;
}

+ (void)alterSureMsg:(NSString * )msg delegate:(id)delegate
{
    UIAlertView * alter  = [[UIAlertView alloc]initWithTitle:@"提示" message:msg delegate:delegate cancelButtonTitle:@"确定" otherButtonTitles: nil];
    
    [alter show];
    return;
}
//+(CLLocationCoordinate2D )addressDetails:(NSString *)string{
//    NSString *oreillyAddress = string;  //测试使用中文也可以找到经纬度具体的可以多尝试看看~
//    CLGeocoder *myGeocoder = [[CLGeocoder alloc] init];
//
//    [myGeocoder geocodeAddressString:oreillyAddress completionHandler:^(NSArray *placemarks, NSError *error) {
//        CLPlacemark *firstPlacemark = [placemarks objectAtIndex:0];
//        if ([placemarks count] > 0 && error == nil)
//        {
//            NSLog(@"Found %lu placemark(s).", (unsigned long)[placemarks count]);
//            NSLog(@"Longitude = %f", firstPlacemark.location.coordinate.longitude);
//            NSLog(@"Latitude = %f", firstPlacemark.location.coordinate.latitude);
//        }
//        else if ([placemarks count] == 0 && error == nil)
//        {
//            NSLog(@"Found no placemarks.");
//        }
//        else if (error != nil)
//        {
//            NSLog(@"An error occurred = %@", error);
//        }
//
//    }];
//    CLLocationCoordinate2D ot = {firstPlacemark.location.coordinate.latitude,firstPlacemark.location.coordinate.longitude};
//    return ot;
//}
@end
